import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/api/tbActivationCode',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/api/tbActivationCode',
    method: 'post',
    data: query
  })
}

export function update(query) {
  return request({
    url: '/api/tbActivationCode',
    method: 'put',
    data: query
  })
}

export function del(id) {
  return request({
    url: '/api/tbActivationCode/'+id,
    method: 'delete'
  })
}

export function getCode(query) {
  return request({
    url: '/api/getCode',
    method: 'get',
    params: query
  })
}
